<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1{
            width: 100px;
            height: 100px;
            background-color: aqua;
            margin-top: 20px;
            position: relative;
            .div2{
            position: absolute;
            top: 0px;
            width: 100px;
            height: 100px;
            background-color: blueviolet;
        }
        }
        
    </style>
</head>
<body>
    <div class="div1"></div>
    <div class="div2"></div>
</body>
</html>